package com.jdyfy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

import static com.baomidou.mybatisplus.annotation.IdType.AUTO;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("announcement_department") //数据库中对应的表名
public class AnnouncementDepartment {

    @TableId(type =  AUTO)
    private Long adId;

    private String announcementName;

    private String departmentName;

    private String alrFileUrl;

    private String adText;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String enlistsTime;
}
